package com.greensecurity.sim.service;

import com.greensecurity.sim.entity.Green;

import java.util.List;
import java.util.Optional;

public interface GreenService {
    String save(Green green);

    String getInterNum(String dateTime);
    //返回Id
    long findByInterNum(String interNum);

    List<Green> findAll();

    List<Green> findGreenLimit();

    void delByInterNum(Long id);

    Optional<Green> findGreenById(Long id);
}
